American cybersecurity assistance has been crucial to helping war-torn country fend off hacks, experts say.